-
Notifications
You must be signed in to change notification settings - Fork 124
All tables in cmd2 are now rich-based. #1475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…mpletion. Added a StrEnum for all cmd2 text styles.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1475 +/- ##
=======================================
Coverage 98.74% 98.74%
=======================================
Files 21 21
Lines 5874 5883 +9
=======================================
+ Hits 5800 5809 +9
Misses 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good.
Need to fix failing transcript unit tests on Windows
Customizability of default styles is highly desirable.
cmd2_styles.update(RichHelpFormatter.styles.copy()) | ||
|
||
if styles is not None: | ||
cmd2_styles.update(styles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a unit test where styles
is not None
and verify expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once I get to the task to set a theme, I will write unit tests for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #1417